/**   
* @Title: Apption.java 
* @Package com.example.exception 
* @Description: TODO(��һ�仰�������ļ���ʲô) 
* @author haiabi@163.com  
* @date 2015-12-19 ����9:44:44 
* @version V1.0   
*/
package com.example.exception;

import android.app.Application;

import com.example.geterror.CrashHandler;
import com.example.geterror.EmailRunnable;
import com.example.geterror.InitAppValue;

/** 
 * @ClassName: Apption 
 * @Description: ȫ�ֱ���
 * @author haiabi@163.com
 * @date 2015-12-19 ����9:44:44 
 *  
 */
public class DemoApplition extends Application {
	
	@Override
	public void onCreate() {
		// TODO Auto-generated method stub
		super.onCreate();
		CrashHandler crashHandler = CrashHandler.getInstance();
		crashHandler.init(getApplicationContext());
		InitAppValue.init(this);
		InitAppValue value = InitAppValue.getInstance();
		EmailRunnable.setUser(value.getSendMailUserName());
		EmailRunnable.setPasswrod(value.getSendMailPassWord());
		EmailRunnable.setReceiver(value.getReceiveMailUserName());
		EmailRunnable.setMailhost(value.getSendMailHostUrl());
	}
}
